<!DOCTYPE html>
<meta charset="UTF-8">
<form id="myselectlog" style="margin-top: 20px">
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">用户名：</label>
			<div class="layui-input-inline">
				<input type="text" name="usernmae" id="usernmae" class="layui-input" />
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">操作事情：</label>
			<div class="layui-input-inline">
				<input type="text" name="operation" id="operation" class="layui-input" />
			</div>
		</div>
		<div class="layui-inline">
			<div class="layui-btn-group ">
				<button type="button" class="layui-btn layui-icon layui-icon-search"onclick="searchlog()">查询</button>
				<button type="button" class="layui-btn layui-icon layui-icon-circle"onclick="emptylog()">清空</button>
			</div>
		</div>
	</div>
</form>

<table id="log_table" lay-filter="test"></table>
<script>
layui.use('table', function(){
  var table = layui.table;
  table.render({
	  	title:'学生列表',
	  	color:'#666',
		height: 'auto',
	    elem: '#log_table',
	    url:'user/logpage',
	    page: true,
	    cols: [
	    	[
	      {field:'name', width:'25%', title: '姓名'},
	      {field:'username', width:'25%', title: '用户名'},
	      {field:'date', width:'25%', title: '时间'},
	      {field:'operation', width:'25%', title: '操作事情'}
	    ]
	    	]
  });
});
  </script>